<script>
	// #ifdef APP-PLUS
	import appUpdate from '@/components/appUpdate/appUpdate.js'
	// #endif

	export default {
		onLaunch: function() {
			//console.log('App Launch')

			

			// #ifdef APP-PLUS
			let systemInfo = uni.getSystemInfoSync()
			const data = {
				appid: systemInfo.appId,
				version: systemInfo.appVersion
			}
			console.log(data)
			//把appid和版本发送请求服务器，看服务器上是否有更新	
			//   this.$api.checkVersion(data).then(res => {
			// 	  console.log(res)
			//   	if(res.code==0){
			// 		//如果返回0则表示有更新
			//   		appUpdate(res)  
			//   	}
			//   })    
			// #endif
		},
		onShow: function() {

		},
		onHide: function() {

		}
	}
</script>
<style lang="scss">
	@import "@/uni_modules/uview-ui/index.scss";
	@import '@/uni_modules/tuniao-ui/index.scss';
	@import '@/uni_modules/tuniao-ui/iconfont.css';
</style>